﻿<!--
    © 2012 Alex Kazaev
    FolderDrive project [http://folderdrive.codeplex.com/]
    Licensed under Ms-PL license [http://www.opensource.org/licenses/MS-PL]
    -->
<UserControl x:Class="FolderDrive.Controls.OptionsControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             mc:Ignorable="d"
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid Background="Transparent">
        <Border BorderBrush="LightGray" BorderThickness="2" Margin="3" VerticalAlignment="Center" HorizontalAlignment="Center" Background="AliceBlue">
            <StackPanel >
                <CheckBox Margin="5 5" IsChecked="{Binding OptionsViewModel.UnmountOnExit}">Unmount disks on exit</CheckBox>
                <CheckBox Margin="5 5" IsChecked="{Binding OptionsViewModel.StartMinimized}">Start minimized</CheckBox>
                <CheckBox Margin="5 5" IsChecked="{Binding OptionsViewModel.CheckUpdates}">Check for updates on startup</CheckBox>
                <CheckBox Margin="5 5" IsChecked="{Binding OptionsViewModel.MinimizeOnClose}">Minimize on close</CheckBox>
                <Button Click="OkButtonClick">OK</Button>
            </StackPanel>
        </Border>
    </Grid>
</UserControl>